package Collection.泛型.泛型接口;

public class GenericDemo {
    public static void main(String[] args) {
        MyInterfaceType myInterfaceType = new MyChildofInter();
        myInterfaceType.method("STRING");
        myInterfaceType.method(1111);

        System.out.println("--------------------------");

        MyGenericInterface<Integer> myGenericInterface = new MyGenericInterface<>();
        myGenericInterface.method("123");
        System.out.println();
    }
}
